package bstsetcode;



/**
 * @author noob
 * @version 1.0
 * @date 2021/3/15 8:55
 */
public class LinkedList2Test {
    public static void main(String[] args) {


        LinkedList2<Integer> linkedList = new LinkedList2<>();
        for (int i = 0; i < 5; i++) {
            linkedList.addFirst(i);
            System.out.println(linkedList);
        }
        linkedList.add(2,666);
        System.out.println(linkedList);

        linkedList.removeFirst();
        System.out.println(linkedList);

        linkedList.removeLast();
        System.out.println(linkedList);
    }
}
